package openbang.chatroom.service.vo;

import java.io.Serializable;
import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * 放到 Session里的用户信息
 * 非实体
 * 只放一些基本的用户信息和可以在使用系统过程中临时更改的信息（如：语言种类）
 * 
 * @author aibozeng
 *
 */
@SuppressWarnings("serial")
public class UserLoginInfo implements IsSerializable,Serializable,CacheAvailable{

	private boolean logined = false;
	//==UserAccount.id
	private Long id =0L;
	private String  email = "";
	private Date    loginDate = new Date();
	private String  lastAccessUrl = "";
	private String  niceName = "";
	private Integer grade=GradeEnum.NORMAL.getCode();
	private Integer verifyType=PwdVerifyEnum.OPENBANG.getCode();
    private String loginUrl;
	private String logoutUrl;
	//用户选择的区域     GWT 提供了一个 LocaleInfo   LocaleInfo.getAvailableLocaleNames();
	private String localeName = "zh_CN";

	private Date lastAccessDate = null;
	
	public UserLoginInfo() {
		super();
	}

	public boolean isLogined() {
		return logined;
	}

	public void setLogined(boolean logined) {
		this.logined = logined;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getLoginDate() {
		return loginDate;
	}

	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	public String getLastAccessUrl() {
		return lastAccessUrl;
	}

	public void setLastAccessUrl(String lastAccessUrl) {
		this.lastAccessUrl = lastAccessUrl;
	}

	public String getNiceName() {
		return niceName;
	}

	public void setNiceName(String niceName) {
		this.niceName = niceName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getVerifyType() {
		return verifyType;
	}

	public void setVerifyType(Integer verifyType) {
		this.verifyType = verifyType;
	}

	public String getLoginUrl() {
		return loginUrl;
	}

	public void setLoginUrl(String loginUrl) {
		this.loginUrl = loginUrl;
	}

	public String getLogoutUrl() {
		return logoutUrl;
	}

	public void setLogoutUrl(String logoutUrl) {
		this.logoutUrl = logoutUrl;
	}

	public String getLocaleName() {
		return localeName;
	}

	public void setLocaleName(String localeName) {
		this.localeName = localeName;
	}

	public Date getLastAccessDate() {
		return lastAccessDate;
	}

	public void setLastAccessDate(Date lastAccessDate) {
		this.lastAccessDate = lastAccessDate;
	}
	
	
}
